<div class="su-ui">
  <su-form>
    <su-input type="text" label="<%= t "activerecord.attributes.user.account" %>"
              readonly value="<%= @user.account %>"></su-input>
    <su-input type="text" label="<%= t "activerecord.attributes.user.name" %>"
              readonly value="<%= @user.name %>"></su-input>
    <su-input type="text" label="<%= t "activerecord.attributes.user.phone" %>"
              readonly value="<%= @user.phone %>"></su-input>
    <su-input type="text" label="<%= t "activerecord.attributes.user.email" %>"
              readonly value="<%= @user.email %>"></su-input>
    <su-select label="<%= t "activerecord.attributes.user.roles" %>" multiple :value="<%= @user.roles.ids %>" readonly>
      <% Role.all.each do |role| %>
          <option value="<%= role.id %>"><%= role.name %></option>
      <% end %>
    </su-select>
    <su-text label="<%= t "activerecord.attributes.user.remark" %>" readonly><%= @user.remark %></su-text>
    <div class="clearfix form-actions">
      <%= render partial: 'shared/form/show_actions', locals: {path: :admin_user_path,
                                                               model: @user,
                                                               options: {back_url: admin_users_path}} %>
    </div>
  </su-form>
</div>